<?php

/**
 * Thrown to indicate that an array has been accessed with an illegal index.<br />
 * This class allows user to filter on selection kind.
 */
class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException {

  /**
   * Store the parameter in private of IndexOutOfBoundsException class.<br />
   * 
   * @param string $message The message of the exception.
   * @link http://be2.php.net/manual/en/class.exception.php
   * @link http://fr2.php.net/manual/en/function.is-string.php
   * @link http://be.php.net/manual/en/function.empty.php
   */
  public function __construct($message) {
    if (is_string($message) && !empty($message))
      $this->message = $message;
    else
      throw new IllegalArgumentException("The \$message parameter must be a string.");
  }

}
?>
